﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FortuneHeavenCommon.DataMap;
using FortuneHeavan.Game.DAL;

namespace FortuneHeavenBAL
{
    public class RechargeHistoryBO
    {
        public RechargeHistoryDAL _payDAL;
        public RechargeHistoryBO()
            : base()
        {
            _payDAL = new RechargeHistoryDAL();
        }


        public void Save(RechargeHistory fortune)
        {
            _payDAL.Save(fortune);
        }
        public void Add(RechargeHistory fortune)
        {
            _payDAL.Add(fortune);
        }

        public List<RechargeHistory> GetList(int page, int size, string username)
        {
           return  _payDAL.GetList(page,size,username.Trim());
        }
        public int GetTotalSize(string username)
        {
            return _payDAL.GetTotalSize(username.Trim());
        }

        public RechargeHistory GetChargeByCode(string code)
        {
            return _payDAL.GetChargeByCode(code);
        }

        public List<RechargeHistory> GetListByUser(int page, int size, int id)
        {
            return _payDAL.GetListByUser(page, size, id);
        }
        public int GetTotalSizeByUser(int id)
        {
            return _payDAL.GetTotalSizeByUser(id);
        }
        public RechargeHistory GetChargeByID(int id)
        {
            return GetChargeByID(id);
        }
    }
}
